package thread;

public class TreadDemo1 implements Runnable{
	private Integer i=10;
	@Override
	public synchronized void run() {
		i--;
		System.out.println("name:"+Thread.currentThread().getName()+"i:"+i+Thread.currentThread().isAlive());
		synchronized (this) {
			System.out.println("good");
		}
	}

}
